<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:useBean id="m" class="com.sam.Member" scope="session" ></jsp:useBean>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
${header.Referer }
<c:set var="login_referer" value="${header.Referer }" scope="session"></c:set>
<c:if test="${m.loginIn() }">
	<c:redirect url="Index.jsp"></c:redirect>
</c:if>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login</title>
</head>
<body>
<form action="login" method="POST">
		帳號:<input id="userId" name="userId" type="text" value="${m.userId }" />
		<br/>
		密碼:<input id="passWord" name="passWord" type="text" value="${m.passWord }" />
		<br/>
		${m.loginMsg }
		<br/>
		<input type="submit" value="登入"/>
	</form> 
</body>
</body>
</html>